package com.wilmer.paperAnswers.domain;

import com.wilmer.options.domain.YwOptions;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 答题记录对象 yw_paper_student_answers
 *
 * @author zl
 * @date 2024-04-23
 */
public class YwPaperStudentAnswers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long answerId;

    private Long studentId;
    @Excel(
            name = "题目表id"
    )
    private Long questionId;
    @Excel(
            name = "试卷表id"
    )
    private Long paperId;
    @Excel(
            name = "选项表id"
    )
    private Long optionId;
    private BigDecimal score;
    @Excel(
            name = "学生答案"
    )
    private String answerText;
    @Excel(
            name = "答案是否正确"
    )
    private String isCorrect;

    private BigDecimal incomeScore;

    private String nickName;
    private String questionContent;
    private BigDecimal questionScore;
    private String questionType;
    private String nama;
    private String optionContent;
    private List<YwOptions> optionsList;

    public BigDecimal getIncomeScore() {
        return incomeScore;
    }

    public void setIncomeScore(BigDecimal incomeScore) {
        this.incomeScore = incomeScore;
    }

    public BigDecimal getQuestionScore() {
        return questionScore;
    }

    public void setQuestionScore(BigDecimal questionScore) {
        this.questionScore = questionScore;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getNickName() {
        return nickName;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public List<YwOptions> getOptionsList() {
        return optionsList;
    }

    public void setOptionsList(List<YwOptions> optionsList) {
        this.optionsList = optionsList;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getQuestionContent() {
        return questionContent;
    }

    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getOptionContent() {
        return optionContent;
    }

    public void setOptionContent(String optionContent) {
        this.optionContent = optionContent;
    }

    public void setAnswerId(Long answerId)
    {
        this.answerId = answerId;
    }

    public Long getAnswerId()
    {
        return answerId;
    }
    public void setStudentId(Long studentId)
    {
        this.studentId = studentId;
    }

    public Long getStudentId()
    {
        return studentId;
    }
    public void setQuestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public Long getQuestionId()
    {
        return questionId;
    }
    public void setPaperId(Long paperId)
    {
        this.paperId = paperId;
    }

    public Long getPaperId()
    {
        return paperId;
    }
    public void setOptionId(Long optionId)
    {
        this.optionId = optionId;
    }

    public Long getOptionId()
    {
        return optionId;
    }
    public void setAnswerText(String answerText)
    {
        this.answerText = answerText;
    }

    public String getAnswerText()
    {
        return answerText;
    }
    public void setIsCorrect(String isCorrect)
    {
        this.isCorrect = isCorrect;
    }

    public String getIsCorrect()
    {
        return isCorrect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("answerId", getAnswerId())
            .append("studentId", getStudentId())
            .append("questionId", getQuestionId())
            .append("paperId", getPaperId())
            .append("optionId", getOptionId())
            .append("answerText", getAnswerText())
            .append("isCorrect", getIsCorrect())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
